﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PotatoSoft
{
    namespace VOCTS
    {
        namespace Workbench
        {
            public class Examination
            {
                public string ExaminationID { get; set; }
                public string ExaminationName { get; set; }
                public List<Image> ExaminationImages { get; set; }
                public Project Project { get; set; }

                public void AddImage(Image im)
                {
                    if (ExaminationImages == null)
                    {
                        ExaminationImages = new List<Image>();
                    }

                    if (!ExaminationImages.Contains(im))
                    {
                        ExaminationImages.Add(im);
                    }

                    im.Examination = this;
                }
            }
        }
    }
}
